package com.csdj.music.service;

import com.csdj.music.vo.Consumer;
import com.baomidou.mybatisplus.extension.service.IService;
import com.csdj.music.vo.RespBean;

import javax.servlet.http.HttpServletRequest;

/**
* @author ZouLi
* @description 针对表【consumer】的数据库操作Service
* @createDate 2023-03-13 15:47:53
*/
public interface ConsumerService extends IService<Consumer> {
    /**
     * @Description: 手机号注册
     * @Param [consumer, code]
     * @Return com.csdj.music.vo.RespBean
     * @Throws
     **/
    RespBean registConsumer(Consumer consumer, String code);

    /**
     * @Description: 账号密码登录
     * @Param [username, password, code, request]
     * @Return com.csdj.music.vo.RespBean
     * @Throws
     **/
    RespBean login(String username, String password, String code, HttpServletRequest request);

    /**
     * @Description: 手机号登录
     * @Param [phone, code]
     * @Return com.csdj.music.vo.RespBean
     * @Throws
     **/
    RespBean login(String phone, String code);
}
